import { ApiProperty } from '@nestjs/swagger';
import { IsMobilePhone } from 'class-validator';

export class AgentLoginReqDto {
  @IsMobilePhone('zh-CN')
  @ApiProperty({
    description: '手机号码',
  })
  phone: string;

  @ApiProperty({
    description: '登录密码',
  })
  password: string;
}

export class AgentLoginResDto {
  @ApiProperty({
    description: '登录凭证',
  })
  token: string;
}

export class UpdateClerkProfileDto {
  nickname?: string;
  avatar?: string;
}
